package com.baiku.sanhos.pojo.vo;

import lombok.Data;
import lombok.Value;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Document(indexName = "drugs")
public class DrugVo implements Serializable {
    @Id
    private Integer id;
    private String drugNo;
    @Field(type = FieldType.Keyword, analyzer = "ik_smart", searchAnalyzer = "ik_smart")
    private String drugName;
    private Integer inventory;
    private Double unitprice;
    private String unit;
    private int usage;
    @Field(type = FieldType.Keyword, analyzer = "ik_smart", searchAnalyzer = "ik_smart")
    private String remark;
    private String dosage;
    private String attention;
}
